wayland: Always apply scaling factor to cursor hotspot and dimension
authorJonas Ådahl <jadahl@gmail.com>
Mon, 20 Jul 2015 08:01:32 +0000 (16:01 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 20 Jul 2015 09:36:38 +0000 (17:36 +0800)
commit2943bfef4635f10ecf6d09dc215ca771e341e8a6
treeba4c9eb197a26ba042fecfbee3c698bbc8146328
parentddcb309b5b36c2536cd2c456d33ae9d551666fdc
wayland: Always apply scaling factor to cursor hotspot and dimension

Prior to this patch, the hotspot would be passed in buffer coordinate
space. Where this were ever tested, i.e. in a patched mutter, the
server interpreted them incorrectly, which meant it went undiscovered.
In the updated mutter patches the incorrect behavior in GTK+ was
discovered due to the behavior in mutter was corrected.

In the themed cursor case, the dimensions were not correctly scaled
either, but this had no negative visible effect because the dimension is
only used for reporting damage tracking, and passing a bigger damage
region than surface has no negative visible effects.

https://bugzilla.gnome.org/show_bug.cgi?id=752616
gdk/wayland/gdkcursor-wayland.c